<%@ taglib prefix="s" uri="/struts-tags" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Registration Page</title>
    </head>
    <style>
        .errorMessage {
            color: red;
            font-size: 0.8em;
        } 

        .label {
            color:#000000;
        }
    </style>
</head>
<body>
    <table>
        <tr>
            <td>
        <body>
            <h3>Sign Up</h3>
            <s:form action="register" method="POST">
                <table border="0">
                    <tbody>
                        <tr>
                            <td><s:textfield name="custfname" label="First Name"/></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custmiddle" label="Middle Initial" size="1" maxlength="1"/></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custlname" label="Last Name"/></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custemail" label="E-mail"/></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custusername" label = "Username"/></td>
                        </tr>
                        <tr>
                            <td><s:password name="custpassword" label = "Password"/></td>
                        </tr>
                        <tr>
                            <td><h3>Delivery Address:</h3></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custdeliveryno" label="House Number" size ="6"/></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custdeliverystreet" label="Street"/></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custdeliverysubdivision" label="Subdivision"/></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custdeliverycity" label="City"/></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custdeliverypostal" label="Zip Code"/></td>
                        </tr>
                        <tr>
                            <td><s:select name="custdeliverycountry" label="Country" headerKey="-1" headerValue="--Select--" list="{'India','USA','France', 'Spain', 'Philippines'}"  /></td>
                        </tr>
                        <tr>
                            <td><h3>Payment Info:</h3></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><s:radio name="custcreditissuer" label="Issuer" list="{'1','2'}"/></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custcreditname" label = "Name on CreditCard (Must be exact)"/></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custcreditnum" label = "Credit Card Number"/></td>
                        </tr>
                        <tr>
                            <td><b><s:textfield name="custcreditexpdate" label = "Expiry Date (mm/dd/yyyy)"/></b></td>
                        </tr>
                        <tr>
                            <td><h3>Billing Address:</h3></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custcreditbillingno" label="House Number" size ="6"/></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custcreditbillingstreet" label="Street"/></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custcreditbillingsubdivision" label="Subdivision"/></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custcreditbillingcity" label="City"/></td>
                        </tr>
                        <tr>
                            <td><s:textfield name="custcreditbillingpostal" label="Zip Code"/></td>
                        </tr>
                        <tr>
                            <td><s:select name="custcreditbillingcountry" label="Country" headerKey="-1" headerValue="--Select--" list="{'India','USA','France', 'Spain', 'Philippines'}"  /></td>
                        </tr>
                        <tr>
                            <td></td>

                            <td><s:submit value="Register" align="left"/></td>   

                        </tr>
                    </tbody>
                </table>

            </s:form>
            <br>
            <s:form action="doCaptcha" method="POST">
                <s:actionerror /> 
                <img src="Captcha.jpg" border="0">
                <s:textfield label="Code" name="j_captcha_response" size="20" maxlength="10"/>
                <s:submit value="Verify" align="center" />
            </s:form>

            <br><br>


        </body>
</html>

